home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / c / appsource.lha / APlusPlus / TESTPRGS / utility / AttrList2_test.cxx < prev   
Encoding:
C/C++ Source or Header  |  1994-07-23  |  627 b   |  28 lines

  1. /*******************************************************************************
  2.  
  3.  
  4.  *******************************************************************************/
  5.  
  6. #include <stdio.h>
  7. #include <APlusPlus/utility/AttrList.h>
  8.  
  9. //------------------------------------------------------------------------------
  10.  
  11.  
  12. main()
  13. {
  14.    puts("AttrList2_test\n");
  15.    
  16.    AttrList a1(200,20,201,21,202,22,TAG_END);
  17.    AttrList a2(200,200,300,30,301,31,302,32,TAG_END);
  18.    puts("a1 = ");a1.print();
  19.    puts("a2 = ");a2.print();
  20.    
  21.    a1.addAttrs(a2);
  22.    puts("a1.addAttrs(a2)");
  23.    
  24.    puts("a1 = ");a1.print();
  25.    puts("a2 = ");a2.print();
  26.  
  27. }
  28.